<template>
    <div class="child2">
        这是ciild2
        <h1>这是child1---{{child2Value}}</h1>
    </div>
</template>

<script>
export default {
    props:{
        child2Value:{
            type:Number,
            defaule:0
        }
    },
    data(){
        return{
            
        }
    }
}
</script>

<style scoped lang="scss">
.child2{
    width: 300px;
    height: 100px;
    border: 2px solid red;
}
</style>